package com.example.imageloader2002;

public class ImageOptions {
    private int mPlaceImage;
    private int mErrorImage;
    private ImageOptions(int _placeImage,int errorImage){
        this.mPlaceImage=_placeImage;
        this.mErrorImage=errorImage;
    }

    public int getPlaceImage() {
        return mPlaceImage;
    }

    public int getErrorImage() {
        return mErrorImage;
    }

    public static class Builder{

        private int placeImage;
        private int errorImage;

        public Builder setPlaceImage(int placeImage) {
            this.placeImage = placeImage;
            return this;
        }

        public Builder setErrorImage(int errorImage) {
            this.errorImage = errorImage;
            return this;
        }

        public ImageOptions build(){
            return new ImageOptions(placeImage,errorImage);
        }
    }
}
